<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">


<title>Insert title here</title>
</head>
<body>
<c:set var="hoaList" value="${sessionScope.kqTim}" />
<c:choose>
 <c:when test="${empty hoaList}">
  <h2 align="center">Không tìm thấy Hoa !!!</h2> 
 </c:when>
<c:otherwise>
<table width="100%" border="1" id="myTable" class="tablesorter">
	<c:forEach var="h" items="${hoaList}">
	<tr>
		<td rowspan="3" align="center"><img src="images/Hoa/${h.hinh}" width="200" height="200"/>
		</td>
		<td> <c:out value="${h.tenhoa}"/>  </td>
	</tr>
	<tr>
		<td><c:out value="${h.gia }"/></td>
	</tr>
	<tr>
		<td><form action="Load_hoa" method="post">
			<input type="hidden" name="hoaid" value="${h.mahoa}" >
			<input type ="hidden" name="action" value="mua">
			<input type="submit" value="Mua">
			</form></td>
	</tr>
	</c:forEach>
</table>
</c:otherwise>



</c:choose>
</body>
</html>






